﻿@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <title>Update</title>
    <script src="../../Scripts/PageCreater/Scripts/jquery-1.5.1.min.js" type="text/javascript"></script>
    <script src="../../Scripts/PageCreater/Scripts/PageCreater.js" type="text/javascript"></script>
    <link href="../../Scripts/PageCreater/Css/Style.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        $(document).ready(function () {
            var str = "Name,题目类型名,false,text,notnull,"
                        + "IsActive,状态,false,select|激活!true|注销!false,notnull,"
                        + "Opreate,操作,false,null,null";
            CreatePageFramWithValue(str, "/Type/GetUserByID");
        })
        function SubmitPage() {
            $.ajax({
                type: "Post",
                url: "/Type/TypeUpdate",
                data: { id: getUrlPara(), Name: $("#Name").val(), IsActive: $("#IsActive").val() },
                success: function () {
                    alert("修改成功！");
                    window.location = "/Type/Index";
                }
            });
        }
        </script>
</head>
<body>
    <div class="Content">
        <p>
            @Html.ActionLink("返回列表", "Index")
        </p>
        <form id="Info">
        <fieldset>
            <legend>请输入基本信息</legend>
            <div id="divContent">
            </div>
        </fieldset>
        </form>
         <p>
            <input id="btnSubmit" type="button" value="保存" class="btn3" onclick="SubmitPage()"/></p>
        </div>
</body>
</html>
